package cn.itsource.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

@Data
@Configuration
@PropertySource("classpath:jdbc.properties") //指定从那个配置文件读取，只支持properties
public class JdbcProperties {
    @Value("${db.url}")
    private String url;
    @Value("${db.username}")
    private String username;
}
